import urllib.request

# 代理设置
proxy = urllib.request.ProxyHandler({
    'http': 'http://101.231.104.82:80'
})

opener = urllib.request.build_opener(proxy)
response = opener.open('http://www.baidu.com')
print(response.read())
